﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Audio;

namespace DELVE_GAME.ViewStructure.GameActions
{
    class ChangeStageGameAction : GameAction
    {
        private View view;
        private int index;
        private SoundEffectInstance sound;
        public ChangeStageGameAction(View targetView, int index, SoundEffectInstance sound)
        {
            view = targetView;
            this.index = index;
            this.sound = sound;
        }

        public override void doAction()
        {
            sound.Play();
            view.gotoStage(index);
        }
    }
}
